package com.homeinns.server.service;

import com.homeinns.server.dataobject.UserInfo;
import com.homeinns.server.repository.UserInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoRepository userInfoRepository;

    @Override
    public UserInfo findByOpenid(String openid) {

        return userInfoRepository.findByOpenid(openid);
    }


}
